package cn.jly.boot.mp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @PackageName cn.jly.boot.mp.controller
 * @ClassName ThymeleafController
 * @Description
 * @Author 姬岚洋
 * @Date 2021/1/24 下午 3:54
 */
@Controller
public class ThymeleafController {


    @ResponseBody
    @GetMapping("/hello")
    public String sayHello(String name) {
        return "hello, " + name;
    }

    @GetMapping("/index")
    public String index() {
        return "index";
    }
}
